package project.parser.ast.exps.op.binary;

import project.environments.Value;
import project.parser.ast.exps.Exp;
import project.parser.tokenizer.TokenType;

public class Unequal extends EqualOp {

	public Unequal(Exp left, Exp right) {
		super(left, right);
	}

	@Override
	protected String opToString() {
		return TokenType.UNEQ.toString();
	}

	@Override
	protected boolean op(int left, int right) {
		return left != right;
	}

	@Override
	protected boolean op(boolean left, boolean right) {
		return left != right;
	}

	@Override
	protected boolean op(Value left, Value right) {
		return left != right;
	}
}
